package main.java.game.terrain;


import java.util.List;

import main.java.game.Game;
import main.java.game.item.sorcery.Sorcery;

public class StoneFields extends Terrain {
	
	public StoneFields(String name) {
		super(name);
	}
	public void setTerrain(Game game){
		super.setTerrain(game);
		List<Sorcery> listS=game.getPlayer().getSorceries();
		game.getPlayer().getSorceriesUnavaiables().addAll(listS);
		listS.clear();
		System.out.println("You cannot use sorceries!\n");
		
		
	}
	public void stopUsingTerrain(Game game){
		game.getDiscardPile().add(this);
		game.setTerrainPile(null);
		game.getPlayer().getSorceries().addAll(game.getPlayer().getSorceriesUnavaiables());
		game.getPlayer().getSorceriesUnavaiables().clear();
	}

}
